package com.juben.svr.mapper;

import com.juben.svr.domain.*;
import com.juben.svr.domain.Enum.TypeAndtheme;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface UWorkmapper {

    UWorks getworkByID(String WID);

//    Boolean addNewWork(Integer UID, String Wname, String introduction, Integer typeID, String Wddate, Set<Integer> labelIds);
    boolean insertUWorks(UWorks uworks);

    boolean insertScriptLabel(ScriptLabel scriptLabel);

    //查询剧本类型列表
    List<jb_types> getTypeList();

    //查询剧本题材列表
    List<Label> getLabelList();

    List<UWorks> getUWorkListByUID(Integer UID);

    boolean updateUWorks(UWorks uWorks);

    List<Label> getLabelListByWID(String WID);

    String getWorkType(Integer themeId);

    boolean updateUWorksByContract(UWorks uWorks);

    List<UWorks> getUWorkListByTypeId(Integer themeId);

    List<UWorks> getUWorkListByName(String Wname);

//    boolean setPnameByID(String WID, String Pname);

    List<UWorks> getUWorkList(TypeAndtheme typeAndtheme);

    Boolean insertTransaction(Transaction transaction);

    Transaction TransactionExite(Transaction transaction);

    Boolean setPartyAndTime(Transaction transaction);

    Boolean setTransaction(Transaction transaction);

<<<<<<< HEAD


=======
>>>>>>> 38a1dbe3941ebf5713fbf4c6d3dbf69154c425d3
}
